package flink.ftp;

import org.apache.flink.streaming.api.datastream.DataStreamSource;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;

/**
 *  读取Ftp数据写入到Hive中
 */
public class Ftp2HdfsApp {

    public static void main(String[] args) throws Exception {
        StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
        env.setParallelism(1);
        DataStreamSource<String> streamSource = env.addSource(new FtpDataSource());
        streamSource.print();

        env.execute();

    }
}
